Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The custom german spyware that is also a theme #1710

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

LuftVerbot
Copy link
Member

No description provided.

@LuftVerbot LuftVerbot marked this pull request as ready for review July 19, 2024 06:41
@@ -84,6 +100,7 @@ object SettingsAppearanceScreen : SearchableSettings {
)
}
},
*customPreferenceItem.toTypedArray(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to use PreferenceGroup instead of trying to change a persistent list?

Copy link
Member Author

@LuftVerbot LuftVerbot Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to make another PreferenceGroup just for the custom theme. Or can you merge two PreferenceGroups together?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not, but perhaps

Suggested change
*customPreferenceItem.toTypedArray(),
Preference.PreferenceItem.TextPreference(
title = stringResource(MR.strings.pref_custom_color),
enabled = appTheme == AppTheme.CUSTOM,
subtitle = stringResource(MR.strings.custom_color_description),
onClick = { navigator.push(AppCustomThemeColorPickerScreen()) },
),

would be better

Copy link
Member Author

@LuftVerbot LuftVerbot Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, seems like a good idea. Would've used mutableListOf as another solution. Will try it when I get back home. thx seco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants